# define _CRT_SECURE_NO_WARNINGS 1
# include <stdio.h>
int main()
{
	int A[6] = { 1,2,3,4,5,6 };
	int B[6] = { 6,5,4,3,2,1 };
	int i = 0;
	int j = 0;
	int temp = 0;
	for ( i = 0; i < 6; i++)
	{
		do
		{
			j= i;
			temp = A[i];
			A[i] = B[j];
			B[j] = temp;
			break;
		} while (j<6);
	}
	printf("A[6]=");
	for ( i = 0; i <6; i++)
	{
		printf("%d ", A[i]);
	}
	printf("\n");
	printf("B[6]=");
	for (i = 0; i < 6; i++)
	{
		printf("%d ", B[i]);
	}

	return 0;
}